package main.tileMap;

import java.awt.Graphics;
import java.awt.Rectangle;

public class Solid extends Rectangle {

	private static final long serialVersionUID = 1L;
	public int[] id = {-1,-1};
	
	public Solid(Rectangle rect, int id[]){
		setBounds(rect);
		this.id = id;
	}
	
	public void render(Graphics g){
		g.drawImage(Tile.terrain, x, y, x + width, y + height, id[0]*Tile.size, id[1]*Tile.size, id[0]*Tile.size + Tile.size, id[1]*Tile.size + Tile.size, null);
	}
	
	
}
